import logging
import time
from jiu.Tools import Tools
from jiu.Page import Page
import unittest
from selenium import webdriver

class TestCase(unittest.TestCase):
    # 固定结构
    def setUp(self):
        Tools().log()
        self.driver=webdriver.Edge()
        self.driver.get("https://www.jiuxian.com/")
        self.driver.maximize_window()
    def tearDown(self):
        time.sleep(10)
        self.driver.quit()
        # 测试用例
    def test_login(self):
        logging.info("start")
        po=Page(self.driver)
        po.text_01_jiuxian()
        logging.info("end")


if __name__ == '__main__':
    unittest.main()